.class Les/gm0$b$a;
.super Ljava/lang/Object;
.source "DefaultDownloadLaunchHandler.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/gm0$b;->onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Les/gm0$b;


# direct methods
.method constructor <init>(Les/gm0$b;Landroid/content/Context;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iput-object p2, p0, Les/gm0$b$a;->a:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .line 1
    :try_start_0
    iget-object v0, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iget-object v0, v0, Les/gm0$b;->a:Les/gm0;

    invoke-static {v0}, Les/gm0;->a(Les/gm0;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iget-object v0, v0, Les/gm0$b;->a:Les/gm0;

    invoke-static {v0}, Les/gm0;->a(Les/gm0;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_2

    .line 2
    :cond_0
    iget-object v0, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iget-object v0, v0, Les/gm0$b;->a:Les/gm0;

    invoke-static {v0}, Les/gm0;->a(Les/gm0;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    new-array v1, v0, [Ljava/lang/Integer;

    .line 3
    iget-object v2, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iget-object v2, v2, Les/gm0$b;->a:Les/gm0;

    invoke-static {v2}, Les/gm0;->a(Les/gm0;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    .line 4
    iget-object v2, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iget-object v2, v2, Les/gm0$b;->a:Les/gm0;

    invoke-static {v2}, Les/gm0;->a(Les/gm0;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_4

    .line 5
    aget-object v3, v1, v2

    .line 6
    iget-object v4, p0, Les/gm0$b$a;->a:Landroid/content/Context;

    invoke-static {v4}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v4

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-virtual {v4, v3}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 7
    invoke-virtual {v3}, Les/zn0;->d1()I

    move-result v4

    const/4 v5, -0x5

    if-eq v4, v5, :cond_1

    goto :goto_1

    .line 8
    :cond_1
    iget-object v4, p0, Les/gm0$b$a;->b:Les/gm0$b;

    iget-object v4, v4, Les/gm0$b;->a:Les/gm0;

    iget-object v5, p0, Les/gm0$b$a;->a:Landroid/content/Context;

    const/4 v6, 0x1

    invoke-static {v4, v5, v3, v6}, Les/gm0;->a(Les/gm0;Landroid/content/Context;Les/zn0;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    :goto_2
    return-void

    :catch_0
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_4
    return-void
.end method
